<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>04栅格系统</title>
    <link rel="stylesheet" href="..\bootstrap-3.3.7-dist\css\bootstrap.min.css">    
    <style>
        .a{
            height: 50px;
            border: 1px solid #ccc;
            background-color: #eee;
        }
    </style>
</head>
<body>
    
    <!-- container 固定宽度   container-fluid 100%宽度 -->
    <!-- 每行默认最多只能有12列 -->
    <!-- <div class="container">
        <div class="row">
            <div class="col-md-1 a">1</div>
            <div class="col-md-1 a">1</div>
            <div class="col-md-1 a">1</div>
            <div class="col-md-1 a">1</div>
            <div class="col-md-1 a">1</div>
            <div class="col-md-1 a">1</div>
            <div class="col-md-1 a">1</div>
            <div class="col-md-1 a">1</div>
            <div class="col-md-1 a">1</div>
            <div class="col-md-1 a">1</div>
            <div class="col-md-1 a">1</div>
            <div class="col-md-1 a">1</div>
        </div>
        <div class="row">
            <div class="col-md-3 a">3</div>
            <div class="col-md-3 a">3</div>
            <div class="col-md-3 a">3</div>
            <div class="col-md-3 a">3</div>            
        </div>
        <div class="row">
            <div class="col-md-4 a">4</div>
            <div class="col-md-4 a">4</div>
            <div class="col-md-4 a">4</div>     
        </div>
    </div> -->

    <!-- 响应式  col-md col-sm  开始是堆叠在一起 当分别大于970 750就会变成水平排列   -->
    <!--  col-xs  总是会水平排列 也可以设置不是水平排列  -->
    <!-- <div class="container">
        <div class="row">
            <div class="col-lg-3 col-md-4 col-sm-6 col-xs-6 a">a</div>
            <div class="col-lg-3 col-md-4 col-sm-6 col-xs-6 a">a</div>
            <div class="col-lg-3 col-md-4 col-sm-6 col-xs-6 a">a</div>
            <div class="col-lg-3 col-md-4 col-sm-6 col-xs-6 a">a</div>
        </div>
    </div> -->


    <div class="container">
        <div class="row">
            <div class="col-md-8 a">8</div>
            <!-- 偏移   向右偏移一位 -->
            <div class="col-md-3 col-md-offset-1 a">3</div>
        </div>
        <!-- 嵌套 -->
        <div class="row">
            <div class="col-md-9 a" style="padding:0">
                <div class="col-md-4 a">4</div>
                <div class="col-md-4 a">4</div>
                <div class="col-md-4 a">4</div>
            </div>
            <div class="col-md-3 a">3</div>
        </div>

        <div class="row">
            <!-- col-md-push 右移动  col-md-pull 左移动    - -->
            <div class="col-md-9 col-md-push-3 a">9</div>
            <div class="col-md-3 col-md-pull-9 a">3</div>
        </div>
    </div>

        

        <script src="..\bootstrap-3.3.7-dist\js\jquery-3.2.1.min.js"></script>
        <script src="..\bootstrap-3.3.7-dist\js\bootstrap.min.js"></script>
</body>
</html>